fn age() -> u32 {
    return 15;
}

fn some_number() -> Option<u32> {
    Some(10)
}

fn main() {
    println!("Hello, world!");
    println!("Tell me type of person you are");

    match age() {
        0 => { println!("I'm not born yet I guess"); }
        n @ 1..=12 => println!("I'm a child of age {:?}", n),
        n @ 13..=19 => println!("I'm a teen of age {:?}", n),
        n => println!("I'm an old person of age {:?}", n)
    }

    match some_number() {
        Some(n @ 42..=99) => { println!("the answer:{}", n); }
        Some(n @ 100) => { println!("not interesting... {}", n); }
        _ => ()
    }
}
